package com.zhuang.designpattern.bridge;

import com.zhuang.designpattern.bridge.channel.Pay;
import com.zhuang.designpattern.bridge.channel.WxPay;
import com.zhuang.designpattern.bridge.channel.ZfbPay;
import com.zhuang.designpattern.bridge.mode.PayFaceMode;
import com.zhuang.designpattern.bridge.mode.PayFingerprintMode;

import java.math.BigDecimal;

/**
 * description: Test
 * date: 2022/9/16 9:50
 * author: Zhuang
 * version: 1.0
 */
public class Test {
    public static void main(String[] args) {

        System.out.println("\r\n模拟测试场景；微信支付、人脸方式。");
        Pay wxPay = new WxPay(new PayFaceMode());
        wxPay.transfer("weixin_1092033111", "100000109893", new BigDecimal(100));

        System.out.println("\r\n模拟测试场景；支付宝支付、指纹方式。");
        Pay zfbPay = new ZfbPay(new PayFingerprintMode());
        zfbPay.transfer("jlu19dlxo111","100000109894",new BigDecimal(100));

    }
}
